package org.sbbs.security.dao.hibernate;

import java.util.List;

import org.sbbs.base.dao.hibernate.BaseTreeDaoHibernate;
import org.sbbs.security.dao.MenuDao;
import org.sbbs.security.model.Menu;
import org.springframework.stereotype.Repository;

@Repository("menuDao")
public class MenuDaoHibernate extends BaseTreeDaoHibernate<Menu, Long> implements MenuDao {

	@Override
	public void initMenu(List<Menu> menus) {
		for (Menu entity : menus) {
			this._saveOrUpdate(entity);
		}

	}

	/*
	 * @Override public List<Menu>
	 * getMenuTreeByUrlReses(List<UrlSecurityResource> urlResList) { // TODO
	 * Auto-generated method stub return null; }
	 */
}
